#ifndef COMMUNICATIONPROTOCOL_H
#define COMMUNICATIONPROTOCOL_H
#include <QByteArray>
#include "mymath.h"
class CommunicationProtocol
{
public:
    enum {ID_Vision_dx=0x51,ID_Vision_dy=0x52,ID_Vision_angle=0x53};

    //机器ID
    const int Chasis_ID=0x01;
    const int BatteryManagement_ID=0x02;
    const int GamePad_ID=0x03;

    MyMath mymath;

public:
    CommunicationProtocol();

    QByteArray VisionDatasPakeage(int ID,float visiondata);


};

#endif // COMMUNICATIONPROTOCOL_H
